package jenkins

import (
	"GoMaestro/internal/api"
	"github.com/gin-gonic/gin"
)

type JenRouter struct{}

func (*JenRouter) Router(r gin.IRouter) {
	g := r.Group("/v1")
	JenkinsApi := api.GroupApp.JenkinsApiGroup
	g.GET("/jen/node/status", JenkinsApi.GetNodeStatus)
	g.GET("/jen/log", JenkinsApi.GetBuildLog)
	g.GET("/jen/slog", JenkinsApi.GetStreamBuildLog)
}
